<?php

	require_once ("inc/Database.inc");
	
	$link = ConnectToDatabase2();
	
	$sql = "SELECT * FROM news";
	$result = RunSql($sql,$link);
	
?>
		<table>
<?php 
		while ($row = mysql_fetch_assoc($result)) 
		{
			$date = $row['date'];
			$title= $row['title'];
			$news = $row['news'];
?>
			<tr>
				<td class="date"><?php echo $title?></td>
			</tr>
			<tr>
				<td class="title"><?php echo $date?></td>
			</tr>
			<tr>
				<td class="news"><?php echo $news?></td>
			</tr>
			<tr><td></td></tr>
<?php 
		}
?>
		</table>